package main

import (
	"fmt"
	_ "math/rand"
)


type Person struct {
	Name string
	Age int
	Address string
}

func main() {

	person := Person{"丁佑强", 26, "盘福路"}
	var personChan chan Person
	personChan = make(chan Person, 10)
	personChan <- person
	for i := 0; i < len(personChan); i++ {
		thisPerson := <- personChan
		fmt.Println(thisPerson.Name,
			thisPerson.Age, thisPerson.Address)
	}

}